package com.github.zzay.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zzay
 * @className Event
 * @description Entity class for "Event"
 * @create 2022/07/08 10:20
 */
@Data
@NoArgsConstructor
@TableName("care_event")
@Schema(name = "Event", description = "事件实体")
public class Event implements Serializable {

    private static final long serialVersionUID = 2680813647241521912L;

    /**
     * Identifier.
     */
    @TableId(type = IdType.AUTO)
    @Schema(name = "id", description = "唯一标识符")
    private Integer id;

    /**
     * Event type.
     */
    @Schema(name = "eventType", description = "事件类型：0-情感检测；1-义工交互检测；2-陌生人检测；3-摔倒检测；4-禁止区域入侵检测")
    private Integer eventType;

    /**
     * Event date.
     */
    @Schema(name = "eventDate", description = "事件发生时间")
    private String eventDate;

    /**
     * Event location.
     */
    @Schema(name = "eventLocation", description = "事件发生地点")
    private String eventLocation;

    /**
     * Event description.
     */
    @Schema(name = "eventDesc", description = "事件描述")
    private String eventDesc;

    /**
     * Event image.
     */
    @Schema(name = "eventImage", description = "事件图像地址")
    private String eventImage;

    /**
     * ID of the elderly person that the event is related to.
     */
    @Schema(name = "elderlyPersonId", description = "事件对应老人ID")
    private Integer elderlyPersonId;

}
